package cn.byapps.hw.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

@Entity
@DiscriminatorValue("H")
@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 课后作业实体类
 */
public class Material extends Assignment {

    @Temporal(TemporalType.TIMESTAMP)
    private Date startTime;// 开始时间
    @ManyToOne
    @JoinColumn(name = "serialPK_M_id")
    private SerialPK serialPK;
}
